package com.baidu.mapapi.base;

import android.content.Context;

import com.baidu.mapapi.SDKInitializer;
import com.baidu.mapapi.common.BaiduMapSDKException;
import com.baidu.mapapi.map.OverlayUtil;

public class BmfMapUtils {

    private BmfMapUtils() {
    }

    public static void setAgreePrivacy(Context context, boolean isEnable) {
        SDKInitializer.setAgreePrivacy(context, isEnable);
    }

    public static void initialize(Context context) {
        SDKInitializer.initialize(context);
    }

    public static void setOverlayUpgrade(boolean b) {
        OverlayUtil.setOverlayUpgrade(b);
    }

    public static void init(Context context) {
        try {
            SDKInitializer.setAgreePrivacy(context, false);
            SDKInitializer.initialize(context);
            OverlayUtil.setOverlayUpgrade(false);
        } catch (BaiduMapSDKException e) {
            e.printStackTrace();
        }
    }
}
